<?php
$username = $_POST["txtUsername"];//要登录的账号
$pwd = $_POST["txtPWD"]; //要使用的密码
$con = mysql_connect("localhost","root","88501151");
mysql_select_db ("luntanwang",$con);

$result = mysql_query("SELECT * FROM user_massage0 where idname like '%$username%'");
if (mysql_num_rows($result) < 1) echo '没有数据';

?>